

/*

Dofile: table9_appendix.do 

Date: Dec. 10, 2016 
Aim: Regressions on the sensitivity of tax avoidance to product differenciation   

Input: base_for_reg.dta 
Output: table9_appendix.xls 
Reported in the online appendix: "Table A.9 – More on product differentiation"

*/  

cd $datapath
use base_for_reg, clear 


drop cty_*
qui tab pays, g(cty_)

global name table9_appendix
global tax_var inter_linvemtr interdum_hines
global control inter_tarif inter_ldist inter_lgdpc  cty_* // country fixed effects in all regressions

global condition  // interact with  Nunn
areg luv type $tax_var inter_linvemtr_frac_lnot_homog $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_linvemtr_frac_lnot_homog $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     replace

global condition  // interact with  Nunn
areg luv type $tax_var  inter_dum_frac_lnot_homog $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var  inter_dum_frac_lnot_homog $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 

global condition  // interact with  Nunn
areg luv type $tax_var  inter_dum_frac_lnot_homog inter_linvemtr_frac_lnot_homog $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var  inter_dum_frac_lnot_homog inter_linvemtr_frac_lnot_homog $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 


global condition  // interact with  quality ladder
areg luv type $tax_var inter_linvemtr_lladder  $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_linvemtr_lladder $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 

global condition  // interact with  quality ladder
areg luv type $tax_var inter_dum_lladder  $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_dum_lladder $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 

global condition  // interact with  quality ladder
areg luv type $tax_var inter_linvemtr_lladder inter_dum_lladder  $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_linvemtr_lladder inter_dum_lladder $control  using  "$resultpath/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 


